package day5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class MenuSel {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.println("1:客户信息\n2:购物结算\n3:真情回馈\n4:注销");
        int choice = 0;
        do {
            System.out.print("请选择,输入数字：");
            choice = in.nextInt();
            switch (choice) {
                case 1: {
                    System.out.println("执行客户信息查询");
                }
                break;
                case 2: {
                    System.out.println("执行购物结算");
                }
                break;
                case 3: {
                    System.out.println("真情回馈");
                }
                break;
                case 4: {
                    System.out.println("注销");
                }
                break;
                default: {
                    System.out.print("输入错误，重来");
                }
                break;
            }
        }while (choice<1 || choice>4);

        System.out.println("程序结束");
    }
}
